Optimal. Leaf size=24 \[ \frac{A \tanh ^{-1}(\sin (c+d x))}{d}+\frac{C \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0310902, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {3014, 3770} \[ \frac{A \tanh ^{-1}(\sin (c+d x))}{d}+\frac{C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3014
Rule 3770
Rubi steps
\begin{align*} \int \left (A+C \cos ^2(c+d x)\right ) \sec (c+d x) \, dx &=\frac{C \sin (c+d x)}{d}+A \int \sec (c+d x) \, dx\\ &=\frac{A \tanh ^{-1}(\sin (c+d x))}{d}+\frac{C \sin (c+d x)}{d}\\ \end{align*}
Mathematica [A] time = 0.0163272, size = 35, normalized size = 1.46 \[ \frac{A \tanh ^{-1}(\sin (c+d x))}{d}+\frac{C \sin (c) \cos (d x)}{d}+\frac{C \cos (c) \sin (d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.059, size = 32, normalized size = 1.3 \begin{align*}{\frac{A\ln \left ( \sec \left ( dx+c \right ) +\tan \left ( dx+c \right ) \right ) }{d}}+{\frac{C\sin \left ( dx+c \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03149, size = 51, normalized size = 2.12 \begin{align*} \frac{A \log \left (\sin \left (d x + c\right ) + 1\right ) - A \log \left (\sin \left (d x + c\right ) - 1\right ) + 2 \, C \sin \left (d x + c\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6919, size = 107, normalized size = 4.46 \begin{align*} \frac{A \log \left (\sin \left (d x + c\right ) + 1\right ) - A \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, C \sin \left (d x + c\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (A + C \cos ^{2}{\left (c + d x \right )}\right ) \sec{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20299, size = 54, normalized size = 2.25 \begin{align*} \frac{A \log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right ) - A \log \left ({\left | \sin \left (d x + c\right ) - 1 \right |}\right ) + 2 \, C \sin \left (d x + c\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]